imageObject

Constructs an object around an image storage type.

  1. auto imageObject(size_t width, size_t height, IAllocator allocator)
  2. auto imageObject(size_t width, size_t height, shared(ISharedAllocator) allocator)
    @trusted
    imageObject
    (
    Impl
    )
    (
    size_t width
    ,
    size_t height
    ,
    shared(ISharedAllocator) allocator = processAllocator
    )
    if (
    is(Impl == struct) &&
    isUnsigned!(ImageIndexType!Impl)
    &&
    (ImageIndexType!Impl).sizeof <= (void*).sizeof
    &&
    is(Impl == shared)
    )
  3. auto imageObject(Impl* instance, IAllocator allocator)
  4. auto imageObject(Impl* instance, shared(ISharedAllocator) allocator)

Parameters

width size_t

The width to assign

height size_t

The height to assign

allocator shared(ISharedAllocator)

Allocator to use

Return Value

Type: auto

An ImageObject wrapper around the implementation specified.

See Also

ImageObject

Meta